package com.youme.model.param

import com.google.gson.Gson
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody
import retrofit2.http.Field

/**
 * @Time:2021/3/30 18:12
 * @Author:wujinsheng
 * @Description:
 */
data class ParamCodeLogin(
    @Field("code") val code: String,
    @Field("phonenumber") val phonenumber: String
) {
    fun toBody(): RequestBody = RequestBody.create("application/json".toMediaType(), Gson().toJson(this))
}